|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.minecraft.src.customstuff.scripts.Crafting
public class Crafting
| Constructor Summary | |
|---|---|
Crafting(net.minecraft.src.IInventory crafting,
net.minecraft.src.EntityPlayer player)
|
|
| Method Summary | |
|---|---|
void |
addToInventory(int id,
int count,
int damage)
Adds items to the crafting inventory, if there is space for them. |
void |
addToInventorySlot(int slotId,
int count)
Adds items to a slot if there is a item in it |
void |
clearInventory()
Clears the crafting inventory |
void |
clearInventorySlot(int slotId)
Clears a slot of the crafting inventory |
void |
damageItem(int slotId,
int damage)
Damages a item in a slot |
void |
fillInventory(int id,
int damage)
Fills up the crafting inventory. |
void |
fillInventorySlot(int slotId)
Fills up a slot of the crafting inventory if there is a item in it |
int |
getItemCount(int id,
int damage)
|
int |
getItemDamage(int slotId)
|
int |
getItemId(int slotId)
|
int |
getItemStackSize(int slotId)
|
int |
getMaxItemDamage(int slotId)
|
int |
getSize()
|
int |
getSlot(int id)
|
int |
getSlot(int id,
int damage)
|
void |
removeFromInventory(int id,
int count,
int damage)
Removes items from the crafting inventory |
void |
removeFromInventorySlot(int slotId,
int count)
Removes item from a slot if there is a item in it |
void |
setInventorySlot(int slotId,
int id,
int count,
int damage)
Sets the item in the slot of the crafting inventory |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Crafting(net.minecraft.src.IInventory crafting,
net.minecraft.src.EntityPlayer player)
| Method Detail |
|---|
public int getSize()
public int getSlot(int id)
id - The ID of the item that is searched
public int getSlot(int id,
int damage)
id - The ID of the item that is searcheddamage - The damage of the item that is searched
public void clearInventory()
public void fillInventory(int id,
int damage)
id - The ID of the itemdamage - The damage of the item
public void addToInventory(int id,
int count,
int damage)
id - The ID of the itemcount - The amount to adddamage - The damage of the item
public void removeFromInventory(int id,
int count,
int damage)
id - The ID of the itemcount - The amount to removedamage - The damage of the itempublic void clearInventorySlot(int slotId)
slotId - The ID of the slot to clearpublic void fillInventorySlot(int slotId)
slotId - The ID of the slot to fill
public void setInventorySlot(int slotId,
int id,
int count,
int damage)
slotId - The ID of the slot to setid - The ID of the itemcount - The stacksize of the itemdamage - The damage of the item
public void removeFromInventorySlot(int slotId,
int count)
slotId - The ID of the slot to remove the itemcount - The amount of items to remove
public void addToInventorySlot(int slotId,
int count)
slotId - The ID of the slotcount - The amount of items to add
public void damageItem(int slotId,
int damage)
slotId - The ID of the slotdamage - The damage to add to the itempublic int getItemId(int slotId)
slotId - The ID of the slot
public int getItemStackSize(int slotId)
slotId - The ID of the slot
public int getItemDamage(int slotId)
slotId - The ID of the slot
public int getMaxItemDamage(int slotId)
slotId - The ID of the slot
public int getItemCount(int id,
int damage)
id - The ID of the itemdamage - The damage of the item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||